package com.caiyouxi.system.controller;

import com.caiyouxi.common.bean.ResData;
import com.caiyouxi.system.model.SysCachesBean;
import com.caiyouxi.system.service.SysCachesBeanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * 系统缓存
 * */
@RestController
@RequestMapping("sys_caches")
public class SysCachesBeanController {
    @Autowired
    private SysCachesBeanService service;
    @RequestMapping("delete_caches")
    public ResData delete_caches(@RequestBody SysCachesBean bean){
        return service.delete_caches(bean);
    }

   @RequestMapping("insert_caches")
    public ResData insert_caches(@RequestBody SysCachesBean bean){
        return service.insert_caches(bean);
   }

   @RequestMapping("select_single_caches")
   public ResData select_single_caches(@RequestBody SysCachesBean bean){
        return service.select_single_caches(bean);
   }

   @RequestMapping("update_sys_caches")
   public ResData update_sys_caches(@RequestBody SysCachesBean record){
       return service.update_sys_caches(record);
   }

   @RequestMapping("select_all_caches")
   public ResData select_all_caches(@RequestBody SysCachesBean bean){
       return service.select_all_caches(bean);
   }
}
